Enable pointer compression V8 8.6

719 views
Skip to first unread message

Ben Ernst

unread,
Oct 24, 2020, 9:06:50 PM10/24/20
to v8-users
Hey all, thank you in advance for any advice here. How does one enable pointer compression? I'm updating from v7.1 to v8.6, and I get this error message (below) at runtime. It is probably something minor I overlooked in the code samples.



#
# Fatal error in ../../src/api/api.cc, line 5696
# Embedder-vs-V8 build configuration mismatch. On embedder side pointer compression is DISABLED while on V8 side it's ENABLED.
#
#
#
#FailureMessage Object: 00000078F51FF0A0
==== C stack trace ===============================

        v8::base::debug::StackTrace::StackTrace [0x00007FF77D4C776B+27]
        v8::platform::DefaultPlatform::PostJob [0x00007FF77D4C4141+401]
        V8_Fatal [0x00007FF77B7A5787+167]
        v8::V8::Initialize [0x00007FF77B73D78D+77]
        v8::V8::Initialize [0x00007FF77B545CE0+176] (C:\Code\Optimatics\justobjects\libs\3rdParty\include\v8.h:9655)
        ezv8::Platform::Impl::Impl [0x00007FF77B54BBC3+259] (C:\Code\Optimatics\justobjects\src\ezv8\platform.cpp:46)
        std::_Construct_in_place<ezv8::Platform::Impl> [0x00007FF77D4A9AB2+98] (C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.27.29110\include\xmemory:231)
        std::_Ref_count_obj2<ezv8::Platform::Impl>::_Ref_count_obj2<ezv8::Platform::Impl><> [0x00007FF77D4A9637+119] (C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.27.29110\include\memory:1428)
        std::make_shared<ezv8::Platform::Impl> [0x00007FF77B54B9F8+120] (C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.27.29110\include\memory:2072)
        ezv8::Platform::Platform [0x00007FF77D4AA585+69] (C:\Code\Optimatics\justobjects\src\ezv8\platform.cpp:24)
        `dynamic initializer for 'platform'' [0x00007FF77B52CBB7+71] (C:\Code\Optimatics\justobjects\src\ezv8\platform.cpp:70)

Rodrigo Hernandez

unread,
Oct 24, 2020, 9:54:29 PM10/24/20
to v8-u...@googlegroups.com
Hi Ben, 

You need to add - DV8_COMPRES_POINTERS to your compile flags.




--
--
v8-users mailing list
v8-u...@googlegroups.com
http://groups.google.com/group/v8-users
---
You received this message because you are subscribed to the Google Groups "v8-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to v8-users+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/v8-users/a0e1506d-5f78-4265-b7de-0a5de957f8f6n%40googlegroups.com.

Ben Ernst

unread,
Oct 25, 2020, 1:38:21 AM10/25/20
to v8-users
Thank you Rodrigo, defining V8_COMPRESS_POINTERS was indeed the fix (future readers of this thread note double "S"). 
Cheers,
Ben
Reply all
Reply to author
Forward
0 new messages