Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8015533 | 8 | Unassigned | P3 | Closed | Fixed | b92 |
public class Test {
private static class T0 {
@Contended("")
private double double1;
@Contended("")
private double double2;
}
private static class T1 {
@Contended
private double double1;
@Contended
private double double2;
}
}
Test$T0: field layout
@ 12 --- instance fields start ---
@144 "double1" D
@152 "double2" D
@ 12 --- instance fields end ---
@288 --- instance ends ---
@ 88 --- static fields start ---
@ 88 --- static fields end ---
Test$T1: field layout
@ 12 --- instance fields start ---
@144 "double1" D
@280 "double2" D
@ 12 --- instance fields end ---
@416 --- instance ends ---
@ 88 --- static fields start ---
@ 88 --- static fields end ---
private static class T0 {
@Contended("")
private double double1;
@Contended("")
private double double2;
}
private static class T1 {
@Contended
private double double1;
@Contended
private double double2;
}
}
Test$T0: field layout
@ 12 --- instance fields start ---
@144 "double1" D
@152 "double2" D
@ 12 --- instance fields end ---
@288 --- instance ends ---
@ 88 --- static fields start ---
@ 88 --- static fields end ---
Test$T1: field layout
@ 12 --- instance fields start ---
@144 "double1" D
@280 "double2" D
@ 12 --- instance fields end ---
@416 --- instance ends ---
@ 88 --- static fields start ---
@ 88 --- static fields end ---
- backported by
-
JDK-8015533 @Contended: explicit default value behaves differently from the implicit value
- Closed