Fix memory corruption due to premature llvm_shutdown().

Under LLVM, multiple compiler-related gtests randomly crashes from time
to time, because common_test.h has code to new multiple compiler
instances. Multiple CompilerLLVM instances may cause crash if one
shuts down LLVM prematurely.

This fix uses static class member. Destructor is where we shut
down LLVM.

Change-Id: Ied371794af7ca9eb2c9fe6b278fd779a61a4a753
2 files changed
tree: 4eb14783cac63b87c7985409a8f8d70ebceaa4e5
  1. .gitignore
  3. build/
  4. jdwpspy/
  5. src/
  6. test/
  7. tools/