8026041: JVM crashes with assert "assert(is_updated()) failed: must not be clear" with -XX:+PrintGCApplicationConcurrentTime in -Xcomp mode

Fri, 11 Oct 2013 15:33:08 -0400

author
hseigel
date
Fri, 11 Oct 2013 15:33:08 -0400
changeset 5891
0db3ba3f6870
parent 5888
301ece1880ad
child 5892
df268195b0ea

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

src/share/vm/services/runtimeService.cpp file | annotate | diff | comparison | revisions
     1.1 --- a/src/share/vm/services/runtimeService.cpp	Fri Oct 11 14:57:27 2013 +0000
     1.2 +++ b/src/share/vm/services/runtimeService.cpp	Fri Oct 11 15:33:08 2013 -0400
     1.3 @@ -1,5 +1,5 @@
     1.4  /*
     1.5 - * Copyright (c) 2003, 2012, Oracle and/or its affiliates. All rights reserved.
     1.6 + * Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved.
     1.7   * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     1.8   *
     1.9   * This code is free software; you can redistribute it and/or modify it
    1.10 @@ -119,7 +119,7 @@
    1.11  #endif /* USDT2 */
    1.12  
    1.13    // Print the time interval in which the app was executing
    1.14 -  if (PrintGCApplicationConcurrentTime) {
    1.15 +  if (PrintGCApplicationConcurrentTime && _app_timer.is_updated()) {
    1.16      gclog_or_tty->date_stamp(PrintGCDateStamps);
    1.17      gclog_or_tty->stamp(PrintGCTimeStamps);
    1.18      gclog_or_tty->print_cr("Application time: %3.7f seconds",

mercurial