Mercurial > hg > graal-jvmci-8
comparison src/share/vm/services/runtimeService.cpp @ 12852:0db3ba3f6870
8026041: JVM crashes with assert "assert(is_updated()) failed: must not be clear" with -XX:+PrintGCApplicationConcurrentTime in -Xcomp mode
Summary: Prior to printing the time interval in RuntimeService::record_safepoint_begin(), check first that VM initialization is complete.
Reviewed-by: coleenp, dholmes, sla, ctornqvi
Contributed-by: lois.foltan@oracle.com
author | hseigel |
---|---|
date | Fri, 11 Oct 2013 15:33:08 -0400 |
parents | 07a4efc5ed14 |
children | e6195383bcaf 6f06ebb09080 |
comparison
equal
deleted
inserted
replaced
12849:301ece1880ad | 12852:0db3ba3f6870 |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 2003, 2012, Oracle and/or its affiliates. All rights reserved. | 2 * Copyright (c) 2003, 2013, 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. |
117 #else /* USDT2 */ | 117 #else /* USDT2 */ |
118 HS_PRIVATE_SAFEPOINT_BEGIN(); | 118 HS_PRIVATE_SAFEPOINT_BEGIN(); |
119 #endif /* USDT2 */ | 119 #endif /* USDT2 */ |
120 | 120 |
121 // Print the time interval in which the app was executing | 121 // Print the time interval in which the app was executing |
122 if (PrintGCApplicationConcurrentTime) { | 122 if (PrintGCApplicationConcurrentTime && _app_timer.is_updated()) { |
123 gclog_or_tty->date_stamp(PrintGCDateStamps); | 123 gclog_or_tty->date_stamp(PrintGCDateStamps); |
124 gclog_or_tty->stamp(PrintGCTimeStamps); | 124 gclog_or_tty->stamp(PrintGCTimeStamps); |
125 gclog_or_tty->print_cr("Application time: %3.7f seconds", | 125 gclog_or_tty->print_cr("Application time: %3.7f seconds", |
126 last_application_time_sec()); | 126 last_application_time_sec()); |
127 } | 127 } |