OOP Table size

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

OOP Table size

Holger Freyther
Dear Paolo,

oop.h
#define MAX_OOP_TABLE_SIZE      (sizeof(struct oop_s) << 18)

oop.c
  for (i = MAX_OOP_TABLE_SIZE; i && !oop_heap; i >>= 1)
    oop_heap = _gst_heap_create (address, i * sizeof (struct oop_s));


this code attempts to create address space for the OOP table. So should
table size hold the number of OOPs that should be usable in the image or
should it be the size in bytes?

holger

_______________________________________________
help-smalltalk mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/help-smalltalk
Reply | Threaded
Open this post in threaded view
|

Re: OOP Table size

Paolo Bonzini-2
Il 29/12/2012 11:53, Holger Hans Peter Freyther ha scritto:

> Dear Paolo,
>
> oop.h
> #define MAX_OOP_TABLE_SIZE      (sizeof(struct oop_s) << 18)
>
> oop.c
>   for (i = MAX_OOP_TABLE_SIZE; i && !oop_heap; i >>= 1)
>     oop_heap = _gst_heap_create (address, i * sizeof (struct oop_s));
>
>
> this code attempts to create address space for the OOP table. So should
> table size hold the number of OOPs that should be usable in the image or
> should it be the size in bytes?

Good catch!  It should be the number of OOPs.

Paolo


_______________________________________________
help-smalltalk mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/help-smalltalk