Bug 62102

Summary: obreak update
Product: Base System Reporter: Divacky Roman <xdivac02>
Component: kernAssignee: Alan Cox <alc>
Status: Closed Works As Intended    
Severity: Affects Only Me    
Priority: Normal    
Version: 5.2-CURRENT   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description Divacky Roman 2004-01-30 10:00:34 UTC
 A small speed up of obreak()
 we needlessly lock and unlock vm_map if new==old in obreak() this removes it
 netbsd and linux does it the same way... not big imporovement but cannot hurt
 ;)

How-To-Repeat:  apply this patch
Comment 1 silby freebsd_committer freebsd_triage 2004-02-05 08:32:04 UTC
Responsible Changed
From-To: freebsd-bugs->alc

Alc would know best whether this should be changed or not.
Comment 2 Alan Cox freebsd_committer freebsd_triage 2014-09-07 17:12:46 UTC
I never applied this patch because it introduces a race into the operation of obreak().  The unsynchronized calculation of "old" could lead to an update to vm->vm_dsize that is based on a stale value.