From: Kohler Markus <kohlerm@betze.bbn.hp.com>
To: caml-list@pauillac.inria.fr
Subject: Re: Weak pointers
Date: Tue, 18 Mar 1997 07:43:49 +0000 [thread overview]
Message-ID: <199703180743.IAA22036@betze.bbn.hp.com> (raw)
I didn't take a look at Java's weak pointers, but I assume it's same as in
Smalltalk.
In Smalltalk a weak pointer is not counted when the garbage checks if the
object is still referenced. That means if you have only weak pointers to an
object and the application needs memory it will be garbage collected.
In Smalltalk theres is a correspinding concept called "finalization".
If a weak object is garbage collected a finalize message is called.
This is used in Smalltalk to free external resources like windows.
Markus
--
+----------------------------------------------------------------------------+
| Markus Kohler Hewlett-Packard GmbH |
| Software Engineer Network & System Management Division|
| IT/E Success Team |
+----------------------------------------------------------------------------+
next reply other threads:[~1997-03-18 9:39 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-03-18 7:43 Kohler Markus [this message]
-- strict thread matches above, loose matches on Subject: below --
1997-03-30 17:13 Daniel de Rauglaudre
1997-04-01 10:57 ` Pierre Weis
1997-04-01 12:03 ` Daniel de Rauglaudre
1997-03-21 17:26 Damien Doligez
1997-03-20 12:12 Emmanuel Engel
1997-03-20 16:09 ` Kohler Markus
[not found] <199703181607.RAA13208@tobago.inria.fr>
1997-03-18 17:08 ` Kohler Markus
[not found] <199703181434.PAA12806@tobago.inria.fr>
1997-03-18 15:51 ` Kohler Markus
1997-03-17 19:19 Damien Doligez
1997-03-18 10:09 ` Kohler Markus
1997-03-18 15:54 ` Wolfgang Lux
1997-03-18 16:37 ` Kohler Markus
1997-03-18 17:32 ` Wolfgang Lux
1997-03-11 13:28 Objective Caml 1.04 released Xavier Leroy
1997-03-14 8:40 ` Frank Christoph
1997-03-17 9:13 ` Weak pointers Frank Christoph
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=199703180743.IAA22036@betze.bbn.hp.com \
--to=kohlerm@betze.bbn.hp.com \
--cc=caml-list@pauillac.inria.fr \
/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;
as well as URLs for NNTP newsgroup(s).