Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Per Bothner <per@bothner.com>
To: tromey@redhat.com
Cc: Daniel Berlin <dan@cgsoftware.com>, Per Bothner <per@bothner.com>,
	Andrew Cagney <ac131313@cygnus.com>,
	gdb-patches@sources.redhat.com
Subject: Re: obvious set_cu_language patch
Date: Fri, 08 Jun 2001 14:23:00 -0000	[thread overview]
Message-ID: <m28zj2veq1.fsf@kelso.bothner.com> (raw)
In-Reply-To: <8766e6eke4.fsf@creche.redhat.com>

Tom Tromey <tromey@redhat.com> writes:

> Most instantiations of JArray are actually created at runtime.  Only
> primitive arrays are created statically.

To clarify:  Tom is here talking about the corresponding Class instances
that represent the "run-time type information" of an array type.

Some possibly-helpful terminology:

* A type is a compile-time set of values and operations.
* A class specifies fields, methods and inheritance.
* A class can be viewed as a type, in which case the set of values is
the set of references (pointers) to instances of the class or its
sub-classes.
* All classes inherit from the root java.lang.Object (or Object for short).
* An instance of a class is the same thing as an object;
all Java objects are heap-allocated.
* All Java arrays are objects, hence their classes inherit from Object.
* For each class known to the run-time system (which includes all classes
for which there exist instances), there is a unique java.lang.Class object.
This describes "run-time type information" or "reflective" data, such
as the class name and list of the fields.
* The gcj compiler pre-allocates in static memory Class instances for
normal classes that it compiles.  The run-time system dynamically creates
Class instances for classes that are loaded dynamically (i.e. interpreted).
The run-time system also creates Class instances as needed for array
classes, because there is no way to associate them with a specific
compilation unit.
-- 
	--Per Bothner
per@bothner.com   http://www.bothner.com/per/


  parent reply	other threads:[~2001-06-08 14:23 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-06-07 23:22 Per Bothner
2001-06-07 23:50 ` Daniel Berlin
2001-06-08 11:01   ` Per Bothner
2001-06-08 14:04     ` Stan Shebs
2001-06-08 14:34       ` Daniel Berlin
2001-06-08 13:04 ` Andrew Cagney
     [not found]   ` <m2pucevgf6.fsf@kelso.bothner.com>
2001-06-08 13:51     ` Daniel Berlin
     [not found]       ` <8766e6eke4.fsf@creche.redhat.com>
2001-06-08 14:23         ` Per Bothner [this message]
     [not found]       ` <npelsq28sh.fsf_-_@zwingli.cygnus.com>
2001-06-11 11:43         ` Rewriting the type system Daniel Berlin
2001-06-11 16:58           ` Stan Shebs
2001-06-12  1:44           ` Eli Zaretskii
2001-06-12  9:12             ` Daniel Berlin
2001-06-12 10:01               ` Eli Zaretskii
2001-06-12 10:16           ` Jim Blandy
2001-06-12 10:44             ` Daniel Berlin
2001-06-12 14:02               ` Stan Shebs
2001-06-13  1:45                 ` Eli Zaretskii
2001-06-12 11:08             ` Daniel Berlin
2001-06-12 14:03           ` Andrew Cagney
2001-06-12 21:37             ` Daniel Berlin
2001-06-25 14:13 ` obvious set_cu_language patch Elena Zannoni

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m28zj2veq1.fsf@kelso.bothner.com \
    --to=per@bothner.com \
    --cc=ac131313@cygnus.com \
    --cc=dan@cgsoftware.com \
    --cc=gdb-patches@sources.redhat.com \
    --cc=tromey@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox