8150986: serviceability/sa/jmap-hprof/JMapHProfLargeHeapTest.java failing because expects HPROF JAVA PROFILE 1.0.1 file format jdk8u262-b03

Tue, 19 May 2020 03:11:47 +0100

author
aeriksso
date
Tue, 19 May 2020 03:11:47 +0100
changeset 9916
545fe7caa2fb
parent 9915
26ffadc256e1
child 9917
60ba2af705dc

8150986: serviceability/sa/jmap-hprof/JMapHProfLargeHeapTest.java failing because expects HPROF JAVA PROFILE 1.0.1 file format
Reviewed-by: dcubed, dsamersoff, andrew

test/serviceability/sa/jmap-hprof/JMapHProfLargeHeapTest.java file | annotate | diff | comparison | revisions
     1.1 --- a/test/serviceability/sa/jmap-hprof/JMapHProfLargeHeapTest.java	Wed May 06 21:03:44 2020 +0200
     1.2 +++ b/test/serviceability/sa/jmap-hprof/JMapHProfLargeHeapTest.java	Tue May 19 03:11:47 2020 +0100
     1.3 @@ -1,5 +1,5 @@
     1.4  /*
     1.5 - * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
     1.6 + * Copyright (c) 2013, 2016, 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 @@ -50,7 +50,6 @@
    1.11  
    1.12  public class JMapHProfLargeHeapTest {
    1.13      private static final String HEAP_DUMP_FILE_NAME = "heap.hprof";
    1.14 -    private static final String HPROF_HEADER_1_0_1 = "JAVA PROFILE 1.0.1";
    1.15      private static final String HPROF_HEADER_1_0_2 = "JAVA PROFILE 1.0.2";
    1.16      private static final long M = 1024L;
    1.17      private static final long G = 1024L * M;
    1.18 @@ -75,8 +74,8 @@
    1.19              }
    1.20          }
    1.21  
    1.22 -        // Small heap 22 megabytes, should create 1.0.1 file format
    1.23 -        testHProfFileFormat("-Xmx1g", 22 * M, HPROF_HEADER_1_0_1);
    1.24 +        // All heap dumps should create 1.0.2 file format
    1.25 +        testHProfFileFormat("-Xmx1g", 22 * M, HPROF_HEADER_1_0_2);
    1.26  
    1.27          /**
    1.28           * This test was deliberately commented out since the test system lacks

mercurial