Diff reduction with illumos, in preparation for merging r266993 from the
vendor branch. No functional change. MFC after: 1 week
This commit is contained in:
parent
64de42a598
commit
c436419aea
@ -16841,23 +16841,20 @@ dtrace_dtr(void *data)
|
||||
mutex_enter(&cpu_lock);
|
||||
mutex_enter(&dtrace_lock);
|
||||
|
||||
if (state != NULL) {
|
||||
if (state->dts_anon) {
|
||||
/*
|
||||
* There is anonymous state. Destroy that first.
|
||||
*/
|
||||
ASSERT(dtrace_anon.dta_state == NULL);
|
||||
dtrace_state_destroy(state->dts_anon);
|
||||
}
|
||||
|
||||
dtrace_state_destroy(state);
|
||||
|
||||
#ifndef illumos
|
||||
kmem_free(state, 0);
|
||||
#endif
|
||||
if (state->dts_anon) {
|
||||
/*
|
||||
* There is anonymous state. Destroy that first.
|
||||
*/
|
||||
ASSERT(dtrace_anon.dta_state == NULL);
|
||||
dtrace_state_destroy(state->dts_anon);
|
||||
}
|
||||
|
||||
dtrace_state_destroy(state);
|
||||
#ifndef illumos
|
||||
kmem_free(state, 0);
|
||||
#endif
|
||||
ASSERT(dtrace_opens > 0);
|
||||
|
||||
#ifdef illumos
|
||||
/*
|
||||
* Only relinquish control of the kernel debugger interface when there
|
||||
|
Loading…
Reference in New Issue
Block a user