equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2019, 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. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
58 RecordedThread rt = e.getThread(); |
58 RecordedThread rt = e.getThread(); |
59 Asserts.assertEquals(id.toString(), rt.getJavaName(), "Thread name should match id"); |
59 Asserts.assertEquals(id.toString(), rt.getJavaName(), "Thread name should match id"); |
60 Asserts.assertEquals(id.toString(), rt.getThreadGroup().getName(), "Thread group name should match id"); |
60 Asserts.assertEquals(id.toString(), rt.getThreadGroup().getName(), "Thread group name should match id"); |
61 Asserts.assertEquals(id, Integer.valueOf(i), "Chunks out of order"); |
61 Asserts.assertEquals(id, Integer.valueOf(i), "Chunks out of order"); |
62 i++; |
62 i++; |
|
63 System.out.println(i + " OK "); |
63 } |
64 } |
64 } |
65 } |
65 } |
66 } |
66 |
67 |
67 private static void createProfilingRecording(int id) throws InterruptedException { |
68 private static void createProfilingRecording(int id) throws InterruptedException { |