Bug 491514 - Followup, change from sizeof(LIns*) to sizeof(LIns), r=gal.

This commit is contained in:
Graydon Hoare 2009-05-06 17:41:52 -07:00
Родитель 2fa623edd8
Коммит c80c21b2c5
2 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -131,7 +131,7 @@ static const char tagChar[] = "OIDISIBI";
#define MAX_GLOBAL_SLOTS 4096
/* Max memory you can allocate in a LIR buffer via a single skip() call. */
#define MAX_SKIP_BYTES (NJ_PAGE_SIZE - (LIR_FAR_SLOTS + 1) * sizeof(LIns*))
#define MAX_SKIP_BYTES (NJ_PAGE_SIZE - (LIR_FAR_SLOTS + 1) * sizeof(LIns))
/* Max memory needed to rebuild the interpreter stack when falling off trace. */
#define MAX_INTERP_STACK_BYTES \

Просмотреть файл

@ -159,7 +159,7 @@ namespace nanojit
void LirBufWriter::ensureRoom(uint32_t count)
{
NanoAssert(count <= NJ_PAGE_SIZE - (LIR_FAR_SLOTS + 1) * sizeof(LIns*));
NanoAssert(count <= NJ_PAGE_SIZE - (LIR_FAR_SLOTS + 1) * sizeof(LIns));
LInsp before = _buf->next();
LInsp after = before+count+LIR_FAR_SLOTS;
// transition to the next page?