equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1997, 2016, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1997, 2018, 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. |
7 * published by the Free Software Foundation. |
50 OBJECT_WAIT, // Waiting on an Object.wait() call |
50 OBJECT_WAIT, // Waiting on an Object.wait() call |
51 BREAKPOINTED, // Suspended at breakpoint |
51 BREAKPOINTED, // Suspended at breakpoint |
52 SLEEPING, // Thread.sleep() |
52 SLEEPING, // Thread.sleep() |
53 ZOMBIE // All done, but not reclaimed yet |
53 ZOMBIE // All done, but not reclaimed yet |
54 }; |
54 }; |
55 |
|
56 // I'd make OSThread a ValueObj embedded in Thread to avoid an indirection, but |
|
57 // the assembler test in java.cpp expects that it can install the OSThread of |
|
58 // the main thread into its own Thread at will. |
|
59 |
|
60 |
55 |
61 class OSThread: public CHeapObj<mtThread> { |
56 class OSThread: public CHeapObj<mtThread> { |
62 friend class VMStructs; |
57 friend class VMStructs; |
63 friend class JVMCIVMStructs; |
58 friend class JVMCIVMStructs; |
64 private: |
59 private: |