Ticket #593 (closed defect: fixed)
extract-instance-and-class-slotds does not respect slots with strange allocations
| Reported by: | xxxxxx | Owned by: | gb |
|---|---|---|---|
| Priority: | normal | Milestone: | Clozure CL 1.4 |
| Component: | ANSI CL Compliance | Version: | trunk |
| Keywords: | Cc: | Kalyanov.Dmitry@… |
Description (last modified by rme) (diff)
Slots with overridden allocations (in my case mmap'd) are still (wrongly) assigned a slot location, because they are assumed to be :instance slots.
This is wrong, and here is a fix.
Index: l1-clos.lisp
===================================================================
--- l1-clos.lisp (revision 12707)
+++ l1-clos.lisp (working copy)
@@ -43,9 +43,11 @@
(collect ((instance-slots)
(shared-slots))
(dolist (s slotds (values (instance-slots) (shared-slots)))
- (if (eq (%slot-definition-allocation s) :class)
- (shared-slots s)
- (instance-slots s)))))
+ (case (%slot-definition-allocation s)
+ (:class
+ (shared-slots s))
+ (:instance
+ (instance-slots s))))))
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

