Merge
authordcubed
Tue, 28 Jul 2009 13:50:07 -0600
changeset 3581 c84159af60dd
parent 3579 b18b94266d60 (current diff)
parent 3580 55775b48f5e5 (diff)
child 3582 2fa2817f3857
child 3672 65e946046d1e
Merge
hotspot/src/share/vm/memory/genCollectedHeap.cpp
hotspot/src/share/vm/prims/jvmtiExport.cpp
hotspot/src/share/vm/runtime/globals.hpp
--- a/hotspot/src/share/vm/memory/genCollectedHeap.cpp	Mon Jul 27 17:23:52 2009 -0400
+++ b/hotspot/src/share/vm/memory/genCollectedHeap.cpp	Tue Jul 28 13:50:07 2009 -0600
@@ -482,6 +482,10 @@
     for (int i = starting_level; i <= max_level; i++) {
       if (_gens[i]->should_collect(full, size, is_tlab)) {
         if (i == n_gens() - 1) {  // a major collection is to happen
+          if (!complete) {
+            // The full_collections increment was missed above.
+            increment_total_full_collections();
+          }
           pre_full_gc_dump();    // do any pre full gc dumps
         }
         // Timer for individual generations. Last argument is false: no CR
--- a/hotspot/src/share/vm/prims/jvmtiExport.cpp	Mon Jul 27 17:23:52 2009 -0400
+++ b/hotspot/src/share/vm/prims/jvmtiExport.cpp	Tue Jul 28 13:50:07 2009 -0600
@@ -1,5 +1,5 @@
 /*
- * Copyright 2003-2007 Sun Microsystems, Inc.  All Rights Reserved.
+ * Copyright 2003-2009 Sun Microsystems, Inc.  All Rights Reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -2427,6 +2427,11 @@
     return;
   }
 
+  if (ForceFullGCJVMTIEpilogues) {
+    // force 'Full GC' was done semantics for JVMTI GC epilogues
+    _full = true;
+  }
+
   // GarbageCollectionStart event posted from VM thread - okay because
   // JVMTI is clear that the "world is stopped" and callback shouldn't
   // try to call into the VM.
--- a/hotspot/src/share/vm/runtime/globals.hpp	Mon Jul 27 17:23:52 2009 -0400
+++ b/hotspot/src/share/vm/runtime/globals.hpp	Tue Jul 28 13:50:07 2009 -0600
@@ -1082,6 +1082,9 @@
   product(ccstr, TraceJVMTI, NULL,                                          \
           "Trace flags for JVMTI functions and events")                     \
                                                                             \
+  product(bool, ForceFullGCJVMTIEpilogues, false,                           \
+          "Force 'Full GC' was done semantics for JVMTI GC epilogues")      \
+                                                                            \
   /* This option can change an EMCP method into an obsolete method. */      \
   /* This can affect tests that except specific methods to be EMCP. */      \
   /* This option should be used with caution. */                            \