Skip to content

Commit 43ed041

Browse files
committed
Pass the dynamically loaded snapshot blob to the V8 Isolate creation parameters #1234
1 parent 05dc386 commit 43ed041

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

test-app/runtime/src/main/cpp/Runtime.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -477,6 +477,7 @@ Isolate* Runtime::PrepareV8Runtime(const string& filesPath, const string& native
477477
if (snapshotPtr) {
478478
m_startupData->data = static_cast<const char*>(dlsym(snapshotPtr, "TNSSnapshot_blob"));
479479
m_startupData->raw_size = *static_cast<const unsigned int*>(dlsym(snapshotPtr, "TNSSnapshot_blob_len"));
480+
create_params.snapshot_blob = m_startupData;
480481
DEBUG_WRITE_FORCE("Snapshot library read %p (%dB).", m_startupData->data, m_startupData->raw_size);
481482
} else if (!Constants::V8_HEAP_SNAPSHOT_BLOB.empty() || !Constants::V8_HEAP_SNAPSHOT_SCRIPT.empty()) {
482483
DEBUG_WRITE_FORCE("Snapshot enabled.");

0 commit comments

Comments
 (0)