1 /* Copyright 1994, 1995 LongView Technologies L.L.C. $Revision: 1.13 $ */
2 /* Copyright (c) 2006, Sun Microsystems, Inc.
5 Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
6 following conditions are met:
8 * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
9 * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following
10 disclaimer in the documentation and/or other materials provided with the distribution.
11 * Neither the name of Sun Microsystems nor the names of its contributors may be used to endorse or promote products derived
12 from this software without specific prior written permission.
14 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT
15 NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
16 THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
17 (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
18 INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
19 OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE
24 class processKlass
: public memOopKlass
{
26 friend void set_processKlass_vtbl(Klass
* k
);
29 bool oop_is_process() const { return true; }
31 // allocation properties
32 bool can_inline_allocation() const { return false; }
34 // allocation operations
35 oop
allocateProcess(int stack_size
);
37 // allocation operations
41 klassOop
create_subclass(mixinOop mixin
, Format format
);
43 static klassOop
create_class(klassOop super_class
, mixinOop mixin
);
46 Format
format() { return process_klass
; }
49 int oop_scavenge_contents(oop obj
);
50 int oop_scavenge_tenured_contents(oop obj
);
51 void oop_follow_contents(oop obj
);
54 void oop_layout_iterate(oop obj
, ObjectLayoutClosure
* blk
);
55 void oop_oop_iterate(oop obj
, OopClosure
* blk
);
58 int oop_header_size() const { return processOopDesc::header_size(); }
61 char* name() const { return "process"; }
64 int object_size() const;