Well, if you want to compile V8 with local modifications, you should generally know how to use a debugger to find out what's wrong if something doesn't work ;-)
In the case at hand, the current implementation of the snapshotting feature doesn't support "large object space", which is the memory region used for objects that are 1MB or larger. To be clear, this is independent from the file size of your JS file, rather it refers to the in-memory size of any individual object. On Thu, Jul 18, 2013 at 1:25 AM, Sarim Khan <[email protected]> wrote: > Hello, > > I'm trying to include my own js library inside v8. So i > edited tools/gyp/v8.gyp and added my js file path in "library_files". > Now i try to compile with clang by this command, > > make native -j 4 library=shared werror=no > > And i got this, > > ACTION tools_gyp_v8_gyp_v8_snapshot_target_run_mksnapshot > /home/......../v8-3.18.1/out/native/obj.target/v8_snapshot/geni/snapshot.cc > > # > # Fatal error in ../src/serialize.cc, line 1642 > # CHECK(space >= 0 && space < kNumberOfSpaces) failed > # > > ==== C stack trace =============================== > > 1: ?? > 2: ?? > 3: ?? > 4: ?? > 5: ?? > 6: ?? > 7: ?? > 8: __libc_start_main > 9: ?? > Trace/breakpoint trap (core dumped) > > > My js file is 7.4MB is size it has a very big json data. > How to overcome this error ? seems like its hitting memory limit > somewhere, something like that ? > > Any help would be highly appreciated. > > Regards, > Sarim Khan > -- -- v8-users mailing list [email protected] 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 [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
