view patches/jamvm/jmm_GetLongAttribute_201.patch @ 2467:a51ca707c3d2

PR772: JamVM + jtreg LocalOnlyTest sends SIGQUIT to all processes on exit. 2011-08-10 Xerxes Ranby <xerxes@zafena.se> JamVM - PR772: jtreg LocalOnlyTest sends SIGQUIT to all processes on exit. * NEWS: Updated. * patches/jamvm/jmm_GetLongAttribute_201.patch: New patch. * Makefile.am: Apply JamVM patch.
author Xerxes Ranby <xerxes@zafena.se>
date Fri, 02 Sep 2011 13:11:34 +0200
parents
children
line wrap: on
line source

Index: jamvm/jamvm/src/classlib/openjdk/management.c
===================================================================
--- jamvm.orig/jamvm/src/classlib/openjdk/management.c	2011-08-09 23:39:21.067466386 +0200
+++ jamvm/jamvm/src/classlib/openjdk/management.c	2011-08-09 23:43:21.987466384 +0200
@@ -146,6 +146,9 @@
         case JMM_JVM_INIT_DONE_TIME_MS:
             result = 0;
             break;
+        case JMM_OS_PROCESS_ID:
+            result = getpid();
+            break;
 
         case JMM_CLASS_LOADED_COUNT:
         case JMM_CLASS_UNLOADED_COUNT:
@@ -153,7 +156,6 @@
         case JMM_THREAD_LIVE_COUNT:
         case JMM_THREAD_PEAK_COUNT:
         case JMM_THREAD_DAEMON_COUNT:
-        case JMM_OS_PROCESS_ID:
 
         default:
             UNIMPLEMENTED("jmm_GetLongAttribute: Unknown attribute %d", att);