Skip to content
This repository has been archived by the owner on Sep 19, 2023. It is now read-only.

Commit

Permalink
8295951: intermittent cmp_baseline task failures with CDS files
Browse files Browse the repository at this point in the history
Backport-of: e193a0b72a143889170b64da19fb22f7f8555e89
  • Loading branch information
calvinccheung committed Feb 21, 2023
1 parent c6a25f4 commit a7d4a1a
Showing 1 changed file with 7 additions and 1 deletion.
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2016, 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2016, 2023, Oracle and/or its affiliates. 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
Expand Down Expand Up @@ -147,6 +147,12 @@ public static void main(String ... args) throws Throwable {
invoke(handle("staticMethod_V", MethodType.methodType(void.class)));

LOGGER.log(Level.FINE, "New Date: " + newDate + " - old: " + oldDate);

// The Striped64$Cell is loaded rarely only when there's a contention among
// multiple threads performing LongAdder.increment(). This results in
// an inconsistency in the classlist between builds (see JDK-8295951).
// To avoid the problem, load the class explicitly.
Class<?> striped64Class = Class.forName("java.util.concurrent.atomic.Striped64$Cell");
}

public HelloClasslist() {}
Expand Down

1 comment on commit a7d4a1a

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.