You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
Trevor Norris 26bc8db33f v8: upgrade to 3.20.17 11 years ago
..
Makefile v8: upgrade to 3.20.17 11 years ago
README deps: upgrade v8 to 3.18.4 12 years ago
bootstrap.sh v8: upgrade to 3.20.17 11 years ago
gccause.lua Upgrade V8 to 3.7.12 13 years ago
gcmole.cc deps: upgrade v8 to 3.18.4 12 years ago
gcmole.lua v8: upgrade to 3.20.17 11 years ago

README

DESCRIPTION -------------------------------------------------------------------

gcmole is a simple static analysis tool used to find possible evaluation order
dependent GC-unsafe places in the V8 codebase.

For example the following code is GC-unsafe:

Handle<Object> Foo(); // Assume Foo can trigger a GC.
void Bar(Object*, Object*);

Handle<Object> baz;
baz->Qux(*Foo()); // (a)
Bar(*Foo(), *baz); // (b)

Both in cases (a) and (b) compiler is free to evaluate call arguments (that
includes receiver) in any order. That means it can dereference baz before
calling to Foo and save a raw pointer to a heap object in the register or
on the stack.

PREREQUISITES -----------------------------------------------------------------

1) Install Lua 5.1

2) Get LLVM 2.9 and Clang 2.9 sources and build them.

Follow the instructions on http://clang.llvm.org/get_started.html.

Make sure to pass --enable-optimized to configure to get Release build
instead of a Debug one.

3) Build gcmole Clang plugin (libgcmole.so)