Page MenuHomeFreeBSD

newbus: Simplify reallocation of devices array
ClosedPublic

Authored by imp on Thu, Oct 31, 8:20 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Nov 19, 12:59 AM
Unknown Object (File)
Mon, Nov 18, 7:24 AM
Unknown Object (File)
Fri, Nov 15, 5:55 PM
Unknown Object (File)
Wed, Nov 13, 4:31 AM
Unknown Object (File)
Sun, Nov 10, 3:30 AM
Unknown Object (File)
Sun, Nov 3, 12:35 PM
Unknown Object (File)
Fri, Nov 1, 9:32 PM
Unknown Object (File)
Fri, Nov 1, 9:01 PM
Subscribers

Details

Summary

Simplify the complex expression down to what it is on 64-bit systems.
32-bit kernels would allocate 2 at a time. Replace all that with
reallocf which will eliminate a bunch of copies. This should be faster
and simpler on both types of kernels.

Suggested by: jhb@
Sponsored by: Netflix

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 60298
Build 57182: arc lint + arc unit