rfm
c66bd6ec5c
Preliminary code for emulation of the objc2 runtime weak reference feature
2024-12-28 07:48:32 +00:00
rfm
28ba7788ce
Fix the case where we replace a value already in the map
2024-11-12 14:27:06 +00:00
rfm
b78b2e2030
hash/map table and pointer functions fixups
2024-11-12 12:03:24 +00:00
rfm
c981920679
Revert "Retain count fixes"
...
This reverts commit 544dcce482
.
2024-11-10 20:13:39 +00:00
rfm
544dcce482
Retain count fixes
2024-11-10 14:14:42 +00:00
Richard Frith-Macdonald
a0a62fbde4
make tests pass on os-x 14.5
2024-07-17 11:32:52 +01:00
rfm
1a1e7f7fc5
Acquiring existing memory does not use a funtion on OSX, copy that behavior.
2024-07-16 19:43:28 +01:00
Frederik Seiffert
b05c6d65bf
Test replacing a weak value in NSMapTable.
2020-06-05 11:48:35 +02:00
Frederik Seiffert
d8565b075f
Skip NSHashTable/NSMapTable weak objects tests if ARC is unavailable
2019-12-10 11:57:50 +01:00
Frederik Seiffert
79ac00e42c
Added tests for NSHashTable/NSMapTable weak objects
2019-11-04 16:01:36 +01:00
David Chisnall
682c9beb5b
Make base do unintuitive and stupid things in the name of Apple compatibility (hopefully Apple will fix their implementation in 10.7.something...).
...
Fix some tests.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33687 72102866-910b-0410-8b05-ffd578937521
2011-08-03 09:04:12 +00:00
Fred Kiefer
6dfb591252
Remove warnings generated by tests.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33686 72102866-910b-0410-8b05-ffd578937521
2011-08-03 08:41:26 +00:00
David Chisnall
00259f1a7c
Tweak the weak tests so that they should still work, even if -base was compiled
...
with something that doesn't do a very good job of optimising autorelease
operations away.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33644 72102866-910b-0410-8b05-ffd578937521
2011-07-26 20:12:32 +00:00
David Chisnall
bc37adfb0c
Add support (and test) for weak keys and values in NSMapTable. This support should work in GC mode. It also works if the runtime supports ARC, even if the compiler does not use this support.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33617 72102866-910b-0410-8b05-ffd578937521
2011-07-23 16:16:01 +00:00
Richard Frith-MacDonald
e6dc5a58b6
Important change to the START_SET and END_SET macros to stop their use
...
being confusing. They now both take a simple C-string argument which
names the set, and the macros check that each end matches a start of
the same name. Since tis means that a START_SET no longer takes an
argument sayng whether or notthe set is to be skipped, we now have a
SKIP macro to be used inside a set to skip to the end of it. This
is actually more versatile as we can have multiple SKIP macros in the
same set, each providing a different reason for the set being skipped.
Also removed a few obsolete/unused functions and macros.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32355 72102866-910b-0410-8b05-ffd578937521
2011-02-24 16:26:01 +00:00
Richard Frith-MacDonald
9f593f6b8e
Add TestInfo markers
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32335 72102866-910b-0410-8b05-ffd578937521
2011-02-23 18:34:39 +00:00
Richard Frith-MacDonald
0e02133729
import testsuite
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32187 72102866-910b-0410-8b05-ffd578937521
2011-02-16 08:21:17 +00:00