VirtualBox

Ignore:
Timestamp:
Jan 2, 2015 12:34:34 PM (10 years ago)
Author:
vboxsync
Message:

VBoxDTrace: vmem fix (r53)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ExtPacks/VBoxDTrace/onnv/uts/common/dtrace/dtrace.c

    r53674 r53675  
    1256512565        (void) snprintf(c, sizeof (c), "dtrace_aggid_%p", state);
    1256612566#endif
     12567#ifndef VBOX /* Avoid idProbe = UINT32_MAX as it is used as invalid value by VTG. */
    1256712568        state->dts_aggid_arena = vmem_create(c, (void *)1, UINT32_MAX, 1,
    1256812569            NULL, NULL, NULL, 0, VM_SLEEP | VMC_IDENTIFIER);
     12570#else
     12571        state->dts_aggid_arena = vmem_create(c, (void *)1, _1G, 1,
     12572            NULL, NULL, NULL, 0, VM_SLEEP | VMC_IDENTIFIER);
     12573#endif
    1256912574
    1257012575#ifndef VBOX
     
    1486814873        ASSERT(MUTEX_HELD(&cpu_lock));
    1486914874
     14875#ifndef VBOX /* Reduce the area a bit just to be sure our vmem fake doesn't blow up. */
    1487014876        dtrace_arena = vmem_create("dtrace", (void *)1, UINT32_MAX, 1,
    1487114877            NULL, NULL, NULL, 0, VM_SLEEP | VMC_IDENTIFIER);
     14878#else
     14879        dtrace_arena = vmem_create("dtrace", (void *)1, UINT32_MAX - 16, 1,
     14880            NULL, NULL, NULL, 0, VM_SLEEP | VMC_IDENTIFIER);
     14881#endif
    1487214882#ifndef VBOX
    1487314883        dtrace_minor = vmem_create("dtrace_minor", (void *)DTRACEMNRN_CLONE,
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette