Fixes for 071-dexfile
Ensure dex2oat has the correct process group.
Don't unmap dex file in DexFile.open.
Diagnostic warning messages in DexFile.open in particular as the class
loader will swallow the IOExceptions without logging.
Fix location of test-ex.jar for test 068-classloader.
Change-Id: Ie54ebb98b687db1eb30091c86de9beb860c26c3d
diff --git a/src/class_linker.cc b/src/class_linker.cc
index 1a9618c..1c9f064 100644
--- a/src/class_linker.cc
+++ b/src/class_linker.cc
@@ -608,6 +608,10 @@
pid_t pid = fork();
if (pid == 0) {
// no allocation allowed between fork and exec
+
+ // change process groups, so we don't get reaped by ProcessManager
+ setpgid(0, 0);
+
execl(dex2oat, dex2oat,
"--runtime-arg", "-Xms64m",
"--runtime-arg", "-Xmx64m",