Mercurial > hg > graal-jvmci-8
comparison src/share/vm/services/heapDumper.cpp @ 2225:c798c277ddd1
7015169: GC Cause not always set
Summary: Sometimes the gc cause was not always set. This caused JStat to print the wrong information.
Reviewed-by: tonyp, ysr
Contributed-by: suenaga.yasumasa@oss.ntt.co.jp
author | brutisso |
---|---|
date | Thu, 03 Feb 2011 20:49:09 -0800 |
parents | 3582bf76420e |
children | 57552dca1708 |
comparison
equal
deleted
inserted
replaced
2189:176d0be30214 | 2225:c798c277ddd1 |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved. | 2 * Copyright (c) 2005, 2011, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. | 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * | 4 * |
5 * This code is free software; you can redistribute it and/or modify it | 5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as | 6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. | 7 * published by the Free Software Foundation. |
1395 void end_of_dump(); | 1395 void end_of_dump(); |
1396 | 1396 |
1397 public: | 1397 public: |
1398 VM_HeapDumper(DumpWriter* writer, bool gc_before_heap_dump, bool oome) : | 1398 VM_HeapDumper(DumpWriter* writer, bool gc_before_heap_dump, bool oome) : |
1399 VM_GC_Operation(0 /* total collections, dummy, ignored */, | 1399 VM_GC_Operation(0 /* total collections, dummy, ignored */, |
1400 GCCause::_heap_dump /* GC Cause */, | |
1400 0 /* total full collections, dummy, ignored */, | 1401 0 /* total full collections, dummy, ignored */, |
1401 gc_before_heap_dump) { | 1402 gc_before_heap_dump) { |
1402 _local_writer = writer; | 1403 _local_writer = writer; |
1403 _gc_before_heap_dump = gc_before_heap_dump; | 1404 _gc_before_heap_dump = gc_before_heap_dump; |
1404 _is_segmented_dump = false; | 1405 _is_segmented_dump = false; |