328 static int _priority_offset; 329 static int _eetop_offset; 330 static int _daemon_offset; 331 static int _stillborn_offset; 332 static int _stackSize_offset; 333 static int _tid_offset; 334 static int _thread_status_offset; 335 static int _park_blocker_offset; 336 static int _park_event_offset ; 337 338 static void compute_offsets(); 339 340 public: 341 // Instance creation 342 static oop create(); 343 // Returns the JavaThread associated with the thread obj 344 static JavaThread* thread(oop java_thread); 345 // Set JavaThread for instance 346 static void set_thread(oop java_thread, JavaThread* thread); 347 // Name 348 static typeArrayOop name(oop java_thread); 349 static void set_name(oop java_thread, typeArrayOop name); 350 // Priority 351 static ThreadPriority priority(oop java_thread); 352 static void set_priority(oop java_thread, ThreadPriority priority); 353 // Thread group 354 static oop threadGroup(oop java_thread); 355 // Stillborn 356 static bool is_stillborn(oop java_thread); 357 static void set_stillborn(oop java_thread); 358 // Alive (NOTE: this is not really a field, but provides the correct 359 // definition without doing a Java call) 360 static bool is_alive(oop java_thread); 361 // Daemon 362 static bool is_daemon(oop java_thread); 363 static void set_daemon(oop java_thread); 364 // Context ClassLoader 365 static oop context_class_loader(oop java_thread); 366 // Control context 367 static oop inherited_access_control_context(oop java_thread); 368 // Stack size hint 369 static jlong stackSize(oop java_thread); | 328 static int _priority_offset; 329 static int _eetop_offset; 330 static int _daemon_offset; 331 static int _stillborn_offset; 332 static int _stackSize_offset; 333 static int _tid_offset; 334 static int _thread_status_offset; 335 static int _park_blocker_offset; 336 static int _park_event_offset ; 337 338 static void compute_offsets(); 339 340 public: 341 // Instance creation 342 static oop create(); 343 // Returns the JavaThread associated with the thread obj 344 static JavaThread* thread(oop java_thread); 345 // Set JavaThread for instance 346 static void set_thread(oop java_thread, JavaThread* thread); 347 // Name 348 static oop name(oop java_thread); 349 static void set_name(oop java_thread, oop name); 350 // Priority 351 static ThreadPriority priority(oop java_thread); 352 static void set_priority(oop java_thread, ThreadPriority priority); 353 // Thread group 354 static oop threadGroup(oop java_thread); 355 // Stillborn 356 static bool is_stillborn(oop java_thread); 357 static void set_stillborn(oop java_thread); 358 // Alive (NOTE: this is not really a field, but provides the correct 359 // definition without doing a Java call) 360 static bool is_alive(oop java_thread); 361 // Daemon 362 static bool is_daemon(oop java_thread); 363 static void set_daemon(oop java_thread); 364 // Context ClassLoader 365 static oop context_class_loader(oop java_thread); 366 // Control context 367 static oop inherited_access_control_context(oop java_thread); 368 // Stack size hint 369 static jlong stackSize(oop java_thread); |